package Stringlei;

public class String4 {
    public static void main(String[] args) {
        String str1="I love China";
        String str2=str1.substring(2);
        String str3=str1.substring(2,6);//截取【2，6）范围内的字符串
        System.out.println(str1);
        System.out.println(str2);
        System.out.println(str3);
    }
}
